<test>
  <sql>SELECT	DISTINCT
		CustomerID
FROM	Orders
ORDER	BY CustomerID, OrderDate</sql>
  <expectedErrors>
    <expectedError id="OrderByItemsMustBeInSelectListIfDistinctSpecified" text="ORDER BY items must appear in the select list if SELECT DISTINCT is specified." />
  </expectedErrors>
</test>